package com.youi.dao;

import com.youi.entity.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface GoodsDao extends BaseDao<Goods>{
	
	public Goods getForUpdate(Long id);
	
	/**
	 *  获取商品信息列表
	 */
	public List<Goods> getGoodsList(@Param("params")Map<String, Object> params, @Param("searchParams")Map<String, Object> searchParams,@Param("keyParams")Map<String, Object> keyParams,@Param("sortParams")Map<String, Object> sortParams,
			@Param("pageIndex")Integer pageIndex, @Param("pageNum")Integer pageNum,@Param("gtParams")Map<String, Object>  gtParams,@Param("ltParams")Map<String, Object> ltParams);

	public List<Goods> getGoodsListNotInIds(@Param("params")Map<String, Object> params,@Param("noParams")Map<String, Object> noParams, @Param("searchParams")Map<String, Object> searchParams,@Param("keyParams")Map<String, Object> keyParams,@Param("sortParams")Map<String, Object> sortParams,
											@Param("pageIndex")Integer pageIndex, @Param("pageNum")Integer pageNum,@Param("gtParams")Map<String, Object>  gtParams,@Param("ltParams")Map<String, Object> ltParams);
}